package com.jctrip.hotel.management.model.result;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@ApiModel(value = "查询财务报表-返回值")
@Data
@Builder
public class GetFinanaceInfoResult {
    @ApiModelProperty(value = "订单数量")
    private Long orderCount;

    @ApiModelProperty(value = "间夜数量")
    private Long roomNightCount;

    @ApiModelProperty(value = "交易金额")
    private BigDecimal paymentPrice;

    @ApiModelProperty(value = "采购金额")
    private BigDecimal purchasePrice;

    @ApiModelProperty(value = "预估利润")
    private BigDecimal profitPrice;

    @ApiModelProperty(value = "供应财务信息列表")
    private List<SourceInfo> sourceInfoList;

    @ApiModelProperty(value = "渠道财务信息列表")
    private List<RouteInfo> routeInfoList;


    @ApiModel(value = "供应财务信息对象")
    @Data
    @Builder
    public static class SourceInfo{
        @ApiModelProperty(value = "主键id")
        private Long id;

        @ApiModelProperty(value = "供应名")
        private String sourceName;

        @ApiModelProperty(value = "采购价")
        private BigDecimal totalPurchasePrice;
    }

    @ApiModel(value = "渠道财务信息对象")
    @Data
    @Builder
    public static class RouteInfo{
        @ApiModelProperty(value = "主键id")
        private Long id;

        @ApiModelProperty(value = "渠道名")
        private String routeName;

        @ApiModelProperty(value = "金额")
        private BigDecimal totalPaymentPrice;
    }
}
